package com.lijie.es;/**
 * @description
 * @author HC
 * @date 2022-01-26-17:59
 */

import com.lijie.es.config.ElasticsearchConfig;
import com.lijie.es.dao.ItemRepository;
import org.elasticsearch.client.RestHighLevelClient;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate;

/**
 * 20220307
 * @author 钟冰涛
 * @description
 * @date 2022/1/26 17:59
 */
//@EnableConfigurationProperties(ElasticsearchConfig.class)
@SpringBootApplication
public class EsApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(EsApplication.class, args);
        System.out.println(run.getBean(ItemRepository.class));
    }
}
